<?php
/*
 * Created on Feb 11, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 	include('../includes/session.php');
	if($session->logged_in){
		if($session->userlevel == 1){
			header("Location: ../login.php");
		}else{
			header("Location: userinfo.php");
		}
	}else if (!$session->logged_in){
		header("Location: login.php");
	} 
?>